﻿@using Lari.Web.Utility
@model Lari.Services.ViewModel.EmployeeModel
<table>
    <tr>
        <td>
            <div>
                Employee #</div>
            <div>
                <strong>@Model.ID</strong></div>
        </td>
        <td>
            <div style="padding-left: 10px">
                Name</div>
             <div style="padding-left: 10px">
                <strong>@this.NvlFullName(this.LookupInfo(LookupEnum.Title, Model.Title), Model.FirstName, Model.Middlename, Model.LastName)</strong></div>
        </td>
        <td>
            <div style="padding-left: 10px">
                Consultant</div>
            <div style="padding-left: 10px">
                <strong>@this.Nvl(Model.IsConsultant)</strong></div>
        </td>
        <td>
            @if (Model.IsDOBCulculated)
            {
                 <div style="padding-left: 10px">
                    Age(Yrs)</div>
                 <div style="padding-left: 10px">
                    <strong>@this.Nvl(Model.Age)</strong></div>
                           
            }
            else
            {
                 <div style="padding-left: 10px">
                    DoB</div>
                 <div style="padding-left: 10px">
                    <strong>@this.Nvl(Model.DOB) </strong>
                </div>
                          
            }
        </td>
        <td>
             <div style="padding-left: 10px">
                Gender</div>
             <div style="padding-left: 10px">
                <strong>@this.LookupInfo(LookupEnum.Gender, Model.GenderCode)</strong></div>
        </td>
        <td>
             <div style="padding-left: 10px">
                Department</div>
             <div style="padding-left: 10px">
                <strong>@this.LookupInfo(LookupEnum.Department, Model.DepartmentId)</strong></div>
        </td>
        <td>
             <div style="padding-left: 10px">
                Designation</div>
             <div style="padding-left: 10px">
                <strong>@this.LookupInfo(LookupEnum.Designation, Model.DesignationId)</strong></div>
        </td>
        <td>
             <div style="padding-left: 10px">
                Employee Type</div>
             <div style="padding-left: 10px">
                <strong>@this.LookupInfo(LookupEnum.EmploypeeType, Model.EmployeeType)</strong></div>
        </td>
    </tr>
</table>
